package liming.tool.handle.net.udp2.bean;

import java.net.DatagramSocket;

public class UdpHandleObject {
    private DatagramSocket datagramSocket;

    public UdpHandleObject(DatagramSocket datagramSocket) {
        this.datagramSocket = datagramSocket;
    }

    public DatagramSocket getDatagramSocket() {
        return datagramSocket;
    }

    public void setDatagramSocket(DatagramSocket datagramSocket) {
        this.datagramSocket = datagramSocket;
    }

    @Override
    public String toString() {
        return " 监听信息= " + datagramSocket.getLocalAddress() + " : " + datagramSocket.getLocalPort() + " ";
    }
}
